import Vue from 'vue'
import Router from 'vue-router'
import Vuex from 'vuex'

// 引入自定义单文件组件
import HelloWorld from '@/components/HelloWorld'
import Index from '../pages/Index'
import Detail from '../pages/Detail'
// 会员组件
import Me from '../components/members/me'
import PersonalInformation from '../components/members/personal-information'
import BasicInformation from '../components/members/basic-information'
import Nickname from '../components/members/nickname'
import MobilephoneNumber from '../components/members/mobilephone-number'
import Sex from '../components/members/Sex'
import Accountsecurity from '../components/members/Account-security'
import Accountsecuritynext from '../components/members/Account-security-next'
import Commoninformation from '../components/members/Common-information'
import Commoncontacts from '../components/members/Common-contacts'
import Addcontacts from '../components/members/Add-contacts'
import Editcontacts from '../components/members/Edit-contacts'
import Commonaddress from '../components/members/Common-address'
import Setting from '../components/members/Setting'
import Addaddress from '../components/members/Add-address'
import Editaddress from '../components/members/Edit-address'
//注册模块
import Register from '../components/system/Register'
import Registerpassword from '../components/system/RegisterPassword'
//搜索页
import Serch from '@/components/Serch'
//登录页
import Login from '@/components/Login'
//订单模块
import MyOrders from '../components/orders/MyOrders'
//门票订单详情
import Ticketorderdetil from '../components/orders/Ticket-order-detil'
//景点模块
import Attractions from '../components/entrance-ticket/Attractions'
import Attractionsdetail from '../components/entrance-ticket/Attractions-detail-first'
import Attractionsdetailsecond from '../components/entrance-ticket/Attractions-detail-second'
import Fillinorder from '../components/entrance-ticket/Fill-in-order'
import Payorder from '../components/entrance-ticket/Pay-order'
import Form from '../common/vue/Form'
import Scenicspotdetail from '../components/entrance-ticket/Scenic-spot-detail'
import Acttractionsmap from '../components/entrance-ticket/Acttractions-map'
//支付
import Pay from '../components/pay/Pay'
import Paychlid from '../components/pay/Pay-child'



// 注册插件
Vue.use(Router)
Vue.use(Vuex)

// 路由配置
export default new Router({
  //mode: "history",
  routes: [
    {
      path: '/HelloWorld',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/',
      name: 'Index',
      component: Index
    },
    {
      path: '/detail',
      name: 'detail',
      component: Detail
    },
    // 会员组件相关路由
    {
      path: '/me',
      name: 'me',
      component: Me
    },
    {
      path: '/personalInformation',
      name: 'personalInformation',
      component: PersonalInformation
    },
    {
      path: '/basicInformation',
      name: 'basicInformation',
      component: BasicInformation
    },
    {
      path: '/nickname',
      name: 'nickname',
      component: Nickname
    },
    {
      path: '/mobilephoneNumber',
      name: 'mobilephoneNumber',
      component: MobilephoneNumber
    },
    {
      path: '/sex',
      name: 'sex',
      component: Sex
    },
    {
      path: '/accountsecurity',
      name: 'accountsecurity',
      component: Accountsecurity
    },
    {
      path: '/accountsecuritynext',
      name: 'accountsecuritynext',
      component: Accountsecuritynext
    },
    {
      path: '/commoninformation',
      name: 'commoninformation',
      component: Commoninformation
    },
    {
      path: '/commoncontacts',
      name: 'commoncontacts',
      component: Commoncontacts
    },
    {
      path: '/addcontacts',
      name: 'addcontacts',
      component: Addcontacts
    },
    {
      path: '/editcontacts',
      name: 'editcontacts',
      component: Editcontacts
    },
    {
      path: '/commonaddress',
      name: 'commonaddress',
      component: Commonaddress
    },
    {
      path: '/setting',
      name: 'setting',
      component: Setting
    },
    {
      path: '/addaddress',
      name: 'addaddress',
      component: Addaddress
    },
    {
      path: '/editaddress',
      name: 'editaddress',
      component: Editaddress
    },
    //搜索页
    {
      path: '/serch',
      name: 'serch',
      component: Serch
    },
    //登录页
    {
      path: '/login',
      name: 'login',
      component: Login
    },
    //注册模块
    {
      path: '/register',
      name: 'register',
      component: Register
    },
    {
      path: '/registerpassword',
      name: 'registerpassword',
      component: Registerpassword
    },
    //订单模块
    {
      path: '/myorders',
      name: 'myorders',
      component: MyOrders
    },
    {
      path: '/ticketorderdetil',
      name: 'ticketorderdetil',
      component: Ticketorderdetil
    },
    //门票模块
    {
      path: '/attractions',
      name: 'attractions',
      component: Attractions,
    },
    {
      path: '/attractionsdetailfirst',
      name: 'attractionsdetailfirst',
      component: Attractionsdetail
    },
    {
      path: '/attractionsdetailsecond',
      name: 'attractionsdetailsecond',
      component: Attractionsdetailsecond
    },
    {
      path: '/form',
      name: 'form',
      component: Form
    },
    {
      path: '/fillinorder',
      name: 'fillinorder',
      component: Fillinorder
    },
    {
      path: '/payorder',
      name: 'payorder',
      component: Payorder
    },
    {
      path: '/scenicspotdetail',
      name: 'scenicspotdetail',
      component: Scenicspotdetail
    },
    {
      path: '/acttractionsmap',
      name: 'acttractionsmap',
      component: Acttractionsmap
    },
    //支付
    {
      path: '/pay',
      name: 'pay',
      component: Pay
    },
    {
      path: '/paychlid',
      name: 'paychlid',
      component: Paychlid
    },
  ]
})
